package com.zzptc.sky.baidudemo.fragments;

import android.view.View;
import android.widget.Button;

import com.zzptc.sky.baidudemo.R;
import com.zzptc.sky.baidudemo.activities.OneKeySOSActivity;
import com.zzptc.sky.baidudemo.base.BaseFragmentsForSOS;

/**
 * Created by Administrator on 2017/5/27.
 */

public class SOSFirstFragment extends BaseFragmentsForSOS{
    private Button btn_sos;
    @Override
    public int getFragmentXml() {
        return R.layout.fragment_sos_first;
    }

    @Override
    public void initView() {
        btn_sos = (Button) getThisView().findViewById(R.id.btn_sos);
        btn_sos.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
//                getFragmentManager().beginTransaction().replace(R.id.fl_sos,new SOSSecondFragment()).commit();
                if (getActivity() instanceof OneKeySOSActivity){
                    ((OneKeySOSActivity) getActivity()).toSecondFragment();
                }
            }
        });
    }

    @Override
    public void initData() {

    }
}
